<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.springside.core.Constants"%>
<%@ include file="/common/taglibs.jsp"%>
<fmt:message key="menu_worklog_label4" var="menu_worklog_label4" />

<ff:boxportlet header="${menu_worklog_label4}">
    	<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:5px">
			<tr>
				<td valign="top">
					<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tbl_left_ico">
				          <c:forEach items="${worklogs}" var="worklog" begin="0" end="4"> 
				          <tr>
								<td>
									<A href="<c:url value="/modules/worklog/worklog.do?method=edit&id=${worklog.id}&t=3"/>" title="${worklog.title}">
									<c:if test="${fn:length(worklog.title)> param.y}">
					                	${fn:substring(worklog.title,0, param.y)}...
					                </c:if>
			                <c:if test="${fn:length(worklog.title)<= param.y}">
			                	${worklog.title}
			                </c:if></a>
							
							<c:if test="${worklog.createDate!=null}">
								<font color="#999999">(<fmt:formatDate value="${worklog.createDate}" pattern="MM-dd HH:mm"/>)</font>
							</c:if>
								</td>
							</tr>
						</c:forEach>
						
						<c:if test="${fn:length(worklogs) < 1}">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</c:if>
						<c:if test="${fn:length(worklogs) < 2}">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</c:if>
						<c:if test="${fn:length(worklogs) < 3}">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</c:if>
						<c:if test="${fn:length(worklogs) < 4}">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</c:if>
						<c:if test="${fn:length(worklogs) < 5}">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</c:if>
	
					</table>
					<table width="100%" height="17">
				        <tr>
				          <td>&nbsp;</td>
				          <td width="30" class="tbl_more_ico_td"><a href="#" class="link_portlet" onClick='mainJump("/modules/worklog/worklog.do","<%=Constants.USER_THEME_FRAME %>")'
			          	title="<fmt:message key="common_more" />"><fmt:message key="common_more" /></a></td>
				        </tr>
			      </table>
				</td>
			</tr>
		</table>
</ff:boxportlet>    
	

	